#include "windows.h"
#include "BitmapSocketAdaptor.h"


class BitmapSocketViaFile : public BitmapSocketAdaptor
{
public:
	BitmapSocketViaFile(WCHAR* fileName);
	~BitmapSocketViaFile();
	bool CreateBitmapFromSocket(int socketFd);
	bool SaveBitmapToSocket(Bitmap& bitmap, int socketFd);
	boost::shared_ptr<Bitmap> BitmapSocketViaFile::getBitmap() ;
private:
	HANDLE  m_FileHandle;
	WCHAR  *m_FileName;
};